//
//  LMTitleSegment.h
//  benben
//
//  Created by mac on 16/5/16.
//  Copyright © 2016年 xunao. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LMTitleSegementDelegate <NSObject>

@optional
-(void)titleSegementDidClickAtIndex:(NSUInteger)index;

@end

@interface LMTitleSegement : UIView

@property(nonatomic, weak) id delegate;
/** 添加分页按钮 */
-(UIButton *)addSegmentBtnWithTitle:(NSString *)title;

/** 选中的索引,可设置 */
@property(nonatomic, assign) NSInteger selectedIndex;

@end
